//
//  FaceToFaceCompleteCell.m
//  SeaMelonSeeds_Counselor
//
//  Created by 尤振宇 on 2017/8/3.
//  Copyright © 2017年 杨笑. All rights reserved.
//

#import "FaceToFaceCompleteCell.h"

@implementation FaceToFaceCompleteCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self.diagnosisBtn roundedCorners_5PX];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (IBAction)fillAction:(id)sender {
    if (self.fillResults) {
        self.fillResults(sender);
    }
}

-(void)setOrder:(Order *)order
{
    [self.headPortrait sd_setImageWithURL:[NSURL URLWithString:order.user_avatar] placeholderImage:[UIImage imageNamed:@"My_TheDefaultAvatar"]];
    self.title.text = order.nickname;
    self.info.text = @"面对面咨询4次";
    self.bookingNo.text = [NSString stringWithFormat:@"预约号: %@",order.out_trade_no];
    self.time.text = [NSString stringWithFormat:@"预约时间: %@",order.serviced_at];
}

@end
